from typing import *


class Solution:

    def constructArr(self, a: List[int]) -> List[int]:
        n = len(a)
        b = [1] * n
        l = [1] * n
        for i in range(1, n):
            l[i] = l[i - 1] * a[i - 1]
        r = 1
        for i in range(n - 1, -1, -1):
            b[i] = l[i] * r
            r *= a[i]
        return b


a = [1] * 0
print(a)